package com.newlink.building.main.adapter

import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

/**
 * Created by xiaodong on 2022/8/31.
 */
class Module_Main_TabFragmentPageAdapter(
    fm: FragmentManager,
    private val mFragmentList: List<Fragment>,
    private val mTitleList: List<String>
) :
    FragmentPagerAdapter(fm) {

    override fun getCount(): Int = mFragmentList.size

    override fun getItem(position: Int): Fragment = mFragmentList[position]
    override fun getPageTitle(position: Int): CharSequence? = mTitleList[position]
    override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {
//        super.destroyItem(container, position, `object`)
    }
}